package 面向对象_中.fobject类的使用.综合练习;

/**
 * @Projectname java_based
 * @Filename GeometricObject
 * @Author an
 * @Data 2022/7/2 15:53
 * @Description TODO
 */
public class GeometricObject {
    protected  String  color;
    protected  double  weight;

    public GeometricObject() {
        super();
        this.color = "white";
        this.weight = 1.0;
    }

    public GeometricObject(String color, double weight) {
        super();
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
